﻿
using System; 
using System.Text;
using System.Collections.Generic; 
using System.Data;
using Kevin.Framework.Data.OrmMapping;
using Kevin.Framework.Validation;
/*------------------------------------------------------------------------
   苏州捷安信息科技有限公司 版权所有			
   文件名: TU_Function.cs
   作 者 : 席吉波
   日 期 : 2012-10-16
   备 注 : 当您对本文件更改时请写明修改人、修改日期以及事由
  ------------------------------------------------------------------------
*/
namespace JOIN.Rights.Model{
	 	//TU_Function
		[Serializable]
	[TableMapping("TU_Function")]
	public class FunctionInfo : EntityBase
	{
		#region Constructor
		
		public FunctionInfo()
			:this("")
		{}
		public FunctionInfo(string connectionKey)
			:base(connectionKey)
		{}
		
		#endregion
   		
      			
		private int _functionid;     
		/// <summary>
		/// 功能编号
        /// </summary>		
		[FieldMapping("FunctionID" )]		
		[NotNullValidator(MessageTemplate="功能编号不能为空")]
				public int FunctionID
        {
            get
            { 
            	return _functionid; 
            }
            set
            { 
            	if(_functionid != value)
            	{            	
            		base.OnPropertyChanged("FunctionID", _functionid, value);
            		_functionid = value; 
            	}
            }
        }        
				
		private string _functionname;     
		/// <summary>
		/// 功能名称
        /// </summary>		
		[FieldMapping("FunctionName" )]		
		[NotNullValidator(MessageTemplate="功能名称不能为空")]
				public string FunctionName
        {
            get
            { 
            	return _functionname; 
            }
            set
            { 
            	if(_functionname != value)
            	{            	
            		base.OnPropertyChanged("FunctionName", _functionname, value);
            		_functionname = value; 
            	}
            }
        }        
				
		private string _functiondesc;     
		/// <summary>
		/// 功能描述
        /// </summary>		
		[FieldMapping("FunctionDesc" )]		
				public string FunctionDesc
        {
            get
            { 
            	return _functiondesc; 
            }
            set
            { 
            	if(_functiondesc != value)
            	{            	
            		base.OnPropertyChanged("FunctionDesc", _functiondesc, value);
            		_functiondesc = value; 
            	}
            }
        }        
				
		private string _projectid;     
		/// <summary>
		/// 项目代码
        /// </summary>		
		[FieldMapping("ProjectID" )]		
				public string ProjectID
        {
            get
            { 
            	return _projectid; 
            }
            set
            { 
            	if(_projectid != value)
            	{            	
            		base.OnPropertyChanged("ProjectID", _projectid, value);
            		_projectid = value; 
            	}
            }
        }        
		   
	}
}